package com.hw.backapi.controller;

import cn.hutool.json.JSON;
import cn.hutool.json.JSONUtil;
import com.hw.model.entity.ChildPO;
import com.hw.model.mapper.ChildMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ChildController {

    @Resource
    ChildMapper childMapper;

    @GetMapping("/child")
    public void child(){
        ChildPO childPO = childMapper.selectById(91);
        System.out.println(JSONUtil.toJsonStr(childPO));
    }
}
